/*
  This is a mocked up class so that it could be used as a parameter elsewhere
  Please replace with actual implementation when it becomes available

*/
import org.apache.commons.lang3.StringUtils;

public class Student extends Person {

	private String yearsOfStudy;
	private String enrollmentStatus;
	private String enrolledMajor;
	private int nRegdCourses;

	public Student(String strUid, String strStudentId, String strFrstName, String strMidName,
					String strLstName, String strAdd1, String strAdd2, String strCty,
					String strStte, String strZp, int age, char personType, int nssn, String strEmail,
					String yearsOfStudy, String enrollmentStatus, String enrolledMajor, int nRegdCourses)
	{
		super(strUid, strStudentId, strFrstName, strMidName, strLstName, strAdd1, strAdd2, strCty, strStte, strZp,
				age, personType, nssn, strEmail);
		this.yearsOfStudy = yearsOfStudy;
		this.enrollmentStatus = enrollmentStatus;
		this.enrolledMajor = enrolledMajor;
		this.nRegdCourses = nRegdCourses;
	}

	public String getYearsOfStudy() {
		return yearsOfStudy;
	}

	public void setYearsOfStudy(String yearsOfStudy) {
		this.yearsOfStudy = yearsOfStudy;
	}

	public String getEnrollmentStatus() {
		return enrollmentStatus;
	}

	public void setEnrollmentStatus(String enrollmentStatus) {
		this.enrollmentStatus = enrollmentStatus;
	}

	public String getEnrolledMajor() {
		return enrolledMajor;
	}

	public void setEnrolledMajor(String enrolledMajor) {
		this.enrolledMajor = enrolledMajor;
	}

	public int getNRegdCourses() {
		return nRegdCourses;
	}

	public void setRegdCourses(int nCrses) {
		nRegdCourses = nCrses;
	}

	public void addCourse() {
		nRegdCourses++;
	}

	public void dropCourse() {
		if (nRegdCourses > 0)
			nRegdCourses--;
		}

	public void setNRegdCourses(int nRegdCourses) {
		this.nRegdCourses = nRegdCourses;
	}

	public String toString()
		{
		 return super.toString() + ", " + yearsOfStudy + ", " + enrollmentStatus + ", " +
		  enrolledMajor + ", " + nRegdCourses ;
	}
}
